package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class ReadFromKeyboard {

    public int readInput() {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            return Integer.parseInt(br.readLine());
        } catch (Exception e) {
            return 0;
        }
    }

    public String readString() {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            return br.readLine();
        } catch (Exception e) {
            return "";
        }

    }
}